Added a check that a panel panel is a subclass of bpy.types.Panel (need a better way to access this type)