Fixed crash if the gifs or messages directories on the SD card do not exist.