Adjust for state object protocol changes in mitmproxy.