Fix view decorator when returning None