HTMLFilter: clean up initialization and finish of the algorithm
HTMLFilter: get rid of ugly null-check