Fixed bug in View when no template variable was assigned