TEIID-2939 moving apply security before assign output elements