Make the implementation of createRequest() compatible with Guzzle > 3.3.