Fix #751 Category not set properly if only title keyword exists for a layer