Fix state check in PeerImp::recvHello