Fix locality when in the case where the OMPI_RTE_HOST_ID is not found.

cmr=v1.7.4:ticket=3847