Fixed yet another potential NPE exception.

Unexpected, yet observed in the wild!