#6323: Fix errors introduced by not understanding code.
#6323: Comments so no one makes this mistake again.
Merge pull request #6329 from openscholar/6323-custom_html_errors

Fix errors introduced by not understanding code.