Fix agent disconnect reconnect bug

Fix a specific Exception that can occur when an Agent disconnects (due to load or network failure) but is still alive and then reconnects to the Scheduler. Previously the Scheduler would hand the Agent back the jobs that it was already processing if the Scheduler had detected that Agent had died (as it would have subsequently made those jobs available for other Agents to pick up on detection of the death).