Attaching an invalid file to a media object produces error