Fix paused jobs script.

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

Fixes #4392
Merge pull request #4455 from dballesteros7/bugfixes-pause-script

Fix paused jobs script.