Correctly detect an ErrorException created from a manual SendError call

This fixes null backtrace frames in regular trigger_errors caught by the error handler