answer = FOREACH foo GENERATE id, bar; -- If bar == null then log a warning.
The best I can think of uses FILTER, but this seems inefficient since I have to apply a filter to ANSWER instead of flagging the bad value as it came up in GENERATE:
warnings = FILTER answer BY (bar == null);
