Revert "Revert "treat undefined return from event handler as handled""

This reverts commit f03ea97b74c29bbd388568a6aabd3be4d315b637.