Fix workflow bug "Local variable 'value' referenced before assignment"

See merge request !1704
8 jobs for fix/grouping_internal
in 0 seconds, using 0 compute credits, and was queued for 1 second