Bug 1032903 - Erase internal storage if SDcard is default. r=ggp

    * Also fixes bug 1032976 - don't cursor.continue if a null file is
      encountered.
    * Correct app-related permissions in manifest.
@guilherme-pg - it seemed weird that we were incrementing the count here but not checking if we were done, thoughts?