Add proper check for Route#reverse(undefined).