Bugfix - do only use the group length if it is non zero when cutting group header.