Fix crash if there are no favorites at all