Explicit single-flag checks in StreamWrapper::triggerError

There's been no testing with this - our local projects/environment use the phar, which we seem to be at a loss to build for ourselves. :P