ExpressionTransformer: fix potential NPE that was seen in IDE