Repair broken parent link in the scanner
add some comments
remove unused argument
Merge pull request #8968 from owncloud/scanner-parent-repair

Repair broken parent link in the scanner