Fix minor code error in Generic Views documentation - missing `if` statement.