Added guard clause to prevent NPE's when Hibernate is initializing, and
object is in an invlaid state