Fix 500 error in sitemap when there are draft items.

The tags/categories/authors which only contain draft items are now hidden.