Fix a crash when processing a null value.