Fix the case of a single process.

This commit was SVN r32807. Cherry-picked from github master as:

open-mpi/ompi@49e79a9ade6c97e357391923f411e75e38fac346