Fix crash when SD (External Storage) is unavailable for some reason.