[pvr] fix wrong index range conditions for selected item
[pvr] cleanup: removes unneeded cast to int
Merge pull request #5102 from xhaggi/pvr-window-cleanups

[pvr] some fixes and cleanups after window rewrite