handle all unregistered routes

Fix #1387.