CRUNCH-446: null checks inside of DoFns. Contributed by Allan Shoup.