Fixed to work with Slim 2.3.x

Was being fed an object and was expecting an array.