In WP_Query::get_queried_object(), account for pre_get_posts by checking for tag when tag_id isn't present.

Merges [27511] to the 3.8 branch.

props mattonomics, wonderboymusic.
fixes #27362.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@27647 602fd350-edb4-49c9-b593-d223f7449a82