msgpack: StateMessage -> protect against upgradeKey == null