(check_all_categories): Don't check categories if they are not available.