correctly handle the case when a MPI task has no data to send/recv Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>