[BUGFIX beta] Throws a deprecation warning if view instance is passed to `{{view}}` helper

Fixes #9427
For these lines to be stripped by defeaturefy, they must be part of the same line as the assert.