TEIID-1757 allowing endswith to be null on null