Fix possible NULL pointer deref.

Signed-off-by: Russ Dill <Russ.Dill@gmail.com>