TEIID-3144 accounting for null