I don't think this is the a correct logic. If no global email is set then no termination email is going to be sent no matter it is enabled or not. I think we should first check whether termination email is enabled and then try to call getOwnerEmail to send the notification.