Fix to gallery app and flick test, so tests will run even if media already exists on the device