Preventing a possible no_method_error when looking up the policy class for a given object.