media file: fix exception on empty files.
This may happen if a user uploads from a source that returns an error HTTP response with no data.
This commit is contained in:
This may happen if a user uploads from a source that returns an error HTTP response with no data.