Fix a category parameter access bug when the category is indirectly imported by an object due to the use of extended categories