Fix view decorator when returning None

I was reading the code for another reason, and noticed that changed line might be wrong. At least it looked like it was. I created this PR to inform about the issue.

Notice: I HAVE NOT TESTED THIS!