fix router.js for when routeObj is null