Update views.py

Preventing errors when questionnaire is not found.