[BUGFIX beta] sync router.js: fix parent-child route invalidation bug

Closes #4405
Merge pull request #4558 from machty/router-parent-child-fix

[BUGFIX beta] sync router.js: fix parent-child route invalidation bug