HV-865 Adding explicit null check for destructibleBeanInstance