Error replaced with warning in router.js

Rather than throwing an error, the router prints a console warning if a triggered event is unhandled. Fixes #2123