Fix getOption inside of AppRouter.

This fixes #1992.