<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->

- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

ReferenceConfig throw IllegalStateException when check failed, but consumerModel is still registered.
* the protocol is <b>DubboProtocol</b></li>
     * <p>
     * Actually，when the {@link ExtensionLoader} init the {@link Protocol} instants,it will automatically wrap three
     * layers, and eventually will get a <b>ProtocolSerializationWrapper</b> or <b>ProtocolFilterWrapper</b> or <b>ProtocolListenerWrapper</b>
     */
    private Protocol protocolSPI;
    /**
     * A {@link ProxyFactory} implementation that will generate a reference service's proxy,the JavassistProxyFactory is
     * its default implementation
     */
    private ProxyFactory proxyFactory;
    private ConsumerModel consumerModel;
    /**
     * The interface proxy reference
     */
    private transient volatile T ref;
    /**
     * The invoker of the reference service
     */
    private transient volatile Invoker<?> invoker;
    /**
     * The flag whether the ReferenceConfig has been initialized
     */
    private transient volatile boolean initialized;
    /**
     * whether this ReferenceConfig has been destroyed
     */
    private transient volatile boolean destroyed;
    /**
     * The service names that the Dubbo interface subscribed.