Manage invalid URL changes with a error handler
When error handler is defined, an invalid URL change transition to the error state.
When error handler is not available, it threw an exception as before