Media: search: Remove useless join with File table

We're searching for a media, it has to have a main file associated with
it, so we don't have to force a join with the file table in case we
don't sort by a File related field
8 jobs for !665 with remove_useless_join in 6 minutes and 11 seconds (queued for 3 seconds)
latest merge request