Fix jobs cleanup

* Handle cases where job template doesn't have "param" block defined
* Fix incorrect variable access

Change-Id: I00943a7f972bdc5b2463c724321b7b3c79a96045
1 file changed