Fix null pointer exception (Bug report #806)

bug report issue #806 - http://openxcom.org/bugs/openxcom/issues/806