CI: fix cronjob-test.sh for workload clusters when there is no cronjob
Closes #1925 (closed)
This MR rewrite the while/read loop to avoid entering the loop when no cronjob was listed.
It also simplifies a bit the loop code (no need to use awk to split the line, read can do this for us).
Edited by Thomas Morin