Remove listeners when resetting the parser.

This gets rid of another diff from the html5 library.

Change-Id: I684d23added4bee1ff8b39e5385064e8036d2c4d