Also back-ported Michael's change from commit b9b8cde5f6 to avoid using callocMustSucceed() in eventNameToHandle()
b9b8cde5f6