Avoid crash if SD card is missing

On my HTC Desire when SD card is missing (and it's permanently missing because it's broken) the app crashes. This patch avoids the crash.