Fixed #5418 -- added assertNoBrokenLinks to test system

Check for broken links in a rendered page. By default only internal links are
checked, if `only_internal` is `False`, external links are checked too.

This commit adds the patch, the tests and the docs where the possible side
effects of this test are noted.