Not checking api_request? as it will always be

In foreman 1.2, it will also fail, as the api_request? method was
introduced in foreman 1.3 to the Api::BaseController