Fix fatal error

If Twitter returns an error it will be a JSON object and PHP will decode it to an object, not an array. This will cause a fatal error on this line.