fix update function when working with locale

When using a localized page in order of prevent errors when iterating through records id we need to remove locale attributes same as we do with url and cacheBuster.