More thorough input/type checking
Add pages_is_page() and cleanup
pages: actually handle bad input/missing entities
Working title element on latest discussions page
Rework some groups pages to simplify (handle bad conditions first)
Merge pull request #5514 from mrclay/input_cleanup

More input/type validation in the main user content plugins, cleanup