Fix #39 - Check for event nodes before processing them.

- http://www.brasil.gov.br/ was breaking because it adds all sorts of
  prototypes to objects