fix hierarchical mns w.r.t. MPI installed with a dummy toolchain

enhanced version of #983 by @kcgthb (which should have been opened targeting `develop`
use positive logic: `if tc_comp_info is None: ... else :...`