Do not call filesize(null), this function expects a string.

filesize(null) yields an int on HHVM and thus exif_imagetype(null) is called.
Merge pull request #12945 from owncloud/hhvm-image

HHVM: Do not call filesize(null), this function expects a string.