Convert list/tuple value to list of IDs only if it contains records
The Modify Header set the start value from the sale or purchase values but when it is a list or a tuple, it should also ensure it contains records before converting to a list of ids.
Closes #13915 (closed)