Log error messages but always return nil (so we don't get strings instead on json response objects)