added null checks into email sender for from address