bug fix: check existence of encryption key before sending encrypted notification