This caused $response->isOK() tests to call a function on a non-existing object, causing all hell to break loose.