[client] Fix error hanlding bug in new block transfer protocol.