Add a small null check in C#-land.