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

Furthermore, filesize(null) yields an int on HHVM. Thus exif_imagetype(null) is
called.