fixes #2869 - refactor method find_nested_obj into API::BaseController