Fixes crash when log entry is added while saving