Fix crash when choosing a null field for categorized style