Remove block that set an error state if the return value was not an array with the first element as a hash.
In case the server decides to return an empty array, that's a valid successful value.
I don't really have a nice way of testing this behavior though, since we don't get to this point if the plan is empty.