fix search by mime for shared single files

Without this if a user shares a single file it is not result when searching by mimetype.

cc @schiesbn @DeepDiver1975