resize thumbnail if image is 0 byte length
Merge pull request #895 from modilabs/attachement-media-zero-byte

#852 resize thumbnail if image is 0 byte length