Don't crash when route path is a regex