Fix NPE in StreamingUDF