Unregister event handler after docs are rendered

This fixes the case where we're generating multiple docs
in a single invocation (such as html generation).  By
unregistering the event handler, a new instance can come
along and register itself as the object to use for new doc
events.
Merge branch 'html-doc-fix' into develop

* html-doc-fix:
  Unregister event handler after docs are rendered