guard againts nil handlers

guard against cases where the method_url is unrecognized and the handler is nil. in those cases, don't try to access them to prevent the dreaded "undefined method `[]' for nil:NilClass" error.