APIClient.logger have to be not nil in Rails

Sometimes the object respond_to :logger but the logger is nil...