Fixed segfault issue introduced by previous commit.

Signed-off-by: Christian Gunderman <christian@sonofboss.cwru.edu>