Fix bug when prop.composite_class exists but not a class

Check if prop.compostite_class is of class type before checking if it is a subclass of `MutableComposite`.