Fix a bug introduced in #2710 where values could no longer be injected in views.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Fix typo.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Merge pull request #2844 from bencorlett/bugfix/view-injection

Fix a bug introduced in #2710 where values could no longer be injected in views