Error in SNAP - StaMPS processing of RS2 data: "Index in position 1 is invalid"

actually, replacing the script as described here should address the “array indices must be positive…” error: New StaMPS release (4.1-beta)