Revert "Prevent MediaScanner infinite loop with invalid path"

This reverts commit 912efb47689b71c90ee53ddf49508f986efe934b.