[videoinfoscanner] fix infinite loop

also fixes infinite loop when items[0] is a file
[videoinfoscanner] do not consider optical file paths as valid subpaths
Merge pull request #5734 from tamland/dvdstackfix

[videoinfoscanner] fix video_ts folder not stacked on movie scan