avoid ArrayIndexOutOfBoundsException in waitTillInstanceReachState

we got at least 18 failures because of this