Fix unused assignment is IProtocol::Write()

Found by clang static analyzer