fix crash when content-length is 0 on media files

If a media file is requested and it does not have a content length
header then just ignore it and don't attempt to store it in the
database.  The link to the external resource is broken.