Check if registered types extend AbstractEnumType

Before adding them to registeredEnumTypes array. Otherwise we will have other custom types in registeredEnumTypes array.