Fix fatal error on TestCase::assertViewHas

Fix fatal error on TestCase::assertViewHas when response is a Json- or RedirectResponse, as the `$original` property is not available.