Fix build.

Change-Id: Icdbf7811e7acb8bed372def3beec8385a631713a
Prevent MediaScanner infinite loop with invalid path

including double slash  "/storage/sdcard0/xx//xxx/xxxx"

Change-Id: I112a70c88b5ec662482b79c3151310b9b9b52e40