TEIID-2656 addressing npe and adding exception logging