[BUGFIX release] Makes sure that `{{view}}` can take instance view as an argument

Related to #9427
Merge pull request #9438 from twokul/detect-view-instance

Makes sure that `{{view}}` can take instance view as an argument