FIX: partial fix for issue #646 (First FOREACH crashes on empty workload)