additional null check to proto2pig