Add nil check when processing

[#76316472]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>