MWExceptionHandler: Fix PHP7 compatibility