@stalbert I had the same error with getSublistField.
getSublistField requires you to specify a line number index, and there is some shortsighted validation on that index that checks that is within the bounds of the length of the sublist
Basically if the current line is a new line that has not been committed, then its "index" is equal to the length of the sublist, so the getSublistField t hinks it's out of bounds