Cleanup a variable that isn't used if pmi2 support is available

Refs #3683