[ticket/11148] Default to application/octet-stream if no mimetype given

This should prevent us from having an empty mimetype while uploading a file
using local_upload().

PHPBB3-11148