Clean up stack trace of ErrorException.

Based on igorsantos07/yii-whoops@96cf877cff