Adding exception in case ConfigureMethods is called before Persist on ScriptObjectMetadata