Adapt unwind tests for PHP 5.6 style error messages

PHP 5.6 has more detailed error messages, i.e. it says
"on null" instead of "on a non-object".  Replaced this
particular part by a %s match to match both possibilities
so the test suite passes on PHP 5.6 as well as older
versions.