fix null pointer exception when calling findPropertyExpression