Fix crash when editing a Razor view

Mad greetz to @matijagrcic on Twitter for the bug report