Consider:

destination_id = rule.get('destination', {}).get('id', '')