View: correctly validate input in PartialLoop

Change the condition to be more safe and intuitive.

Closes #4545