Do not calculate $isWrapped if not needed.
Reset mimetype to application/octet-stream on empty reply from file command.
Return early if fileinfo is there.
Map empty mimetypes to octet-stream for Oracle DBMS.
Merge pull request #5601 from owncloud/fix-mimetype-detection

Fix mimetype detection