Follow defaultErrorHandler change, fixes #7752.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>