Fixes #559 terminate_idle_job_flows throws an exception
Merge pull request #600 from sudarshang/559_terminate_idle_job_flows_exception

Fixes #559 terminate_idle_job_flows throws an exception