Fix #77

Adds a really simple null check.