if a handler function is not specified, do not attempt to validate it

A valid use case is a route without a handler. This can be useful for generating URLs which aren't handled by the server. A route which explicitly does not have a handler specified should not prevent the router from initializing.