Resolver: added missing sanity checking when creating name queries.
Resolver: added missing sanity checking when creating name queries.

Found by Veracode.

firebase/nginx,hy0kl/nginx,firebase/nginx,firebase/nginx,hy0kl/nginx,hy0kl/nginx,firebase/nginx