Dynamic routing fix

Don't throw exception if route not found but return null.