fix warning thrown by array_pop in the guzzle client

this is because array_pop expects a writeable var and is being passed the return from explode