Fixing errors with MPI_COMM_NULL