[#16219] Patch view_unpublished for file_entity

Use targeted hook_query_TAG_alter() instead of hook_query_alter() to ensure that only appropriate queries are re-written.

See https://drupal.org/node/1857656#comment-7804713

With tests.