TEIID-2862 fixing issue with removing union branch