Fix tests for error page preview

See https://github.com/symfony/symfony/pull/12147#issuecomment-63960722 and following comments there.