Fixes a bug which made a file upload crash if a jpg image didn't contain exif information.