[v0.1.5] fix when fetched result are empty
In case we had no results from criteria/collection: the script was simply running indefinitly.
Now if there is no result, the script will stop execution on first iteration.
In case we had no results from criteria/collection: the script was simply running indefinitly.
Now if there is no result, the script will stop execution on first iteration.