Fix Notice when no posts found in query.
Only filter document title on single posts, pages, and CPTs