fix router.js for when routeObj is null
Merge pull request #13 from telepharm/router-fix

fix router.js for when routeObj is null