Sitemaps correctly filter draft posts

fixes #4612

- adds missing line of code to remove draft posts
- adds tests to check drafts aren't added
Merge pull request #4614 from ErisDS/issue-4612

Sitemaps correctly filter draft posts