hhvm support in tests

HHVM seems to display errors on stdout instead of stderr. This fix is a workaround for that to ensure that at least the stdout is added to the exception if no stderr is available. Not sure if that's the way to go but it allows a green hhvm build to detect "real" errors on hhvm...

Any thoughts on this?