TEIID-3101 fixing invalid plan creation