Revert "Throwing when there is no error handler"

This reverts commit 7fc84d46a16a9936d2b35525209ca5c4f0bf87d9.