Fix bug in dedicated scheduler reconnect for parallel jobs #4305