Throw error when no routes available on a module being mounted