Added a bit of code to avoid a NullPointerException in a rare case.


Signed-off-by: Chris Iverson <cj.no.one@gmail.com>