Fix paused jobs script.

Add confirmation on fail jobs and don't crash when no paused jobs
are found.

Fixes #4392