Added fallback for empty language selections