Sitemaps correctly filter draft posts

fixes #4612

- adds missing line of code to remove draft posts
- adds tests to check drafts aren't added