TEIID-2481 reseting the with planning state