dojo/on: added on.handleError for addListener