Fix a bug in the implementation of the `category_property/2` built-in predicate resulting from recent changes