Only install global error handler if we have at least one subscriber
Make it optional to wrap jQuery or async callbacks
Merge branch 'wrap-optional'

* wrap-optional:
  Make it optional to wrap jQuery or async callbacks