[REGRESSION] LPS-40214 Fix java.lang.UnsupportedOperationException: Please make a copy of this read-only list before modifying it