Track php errors as test failures when --filter is used

Unregistering the errorn handler while handling an error was confusing PHP,
this caused normal erros to be dispalyed in the console instead of tracked
as test failures when the --filter flag was used.