hgweb: delete a local variable instead of setting to `None`
The previous code was flagged by PyCharm as an unused variable assignment.
Differential Revision: https://phab.mercurial-scm.org/D7761
#require docutils gettext $ $TESTDIR/check-gendoc it checking for parse errors