fix to note image upload

corrected test for 0 length file when there is no image attached to the
note.