Fixes NB#120960, attachments are not saved properly after trying to save them in...