this is needed, since the the locations / organizations tab was switch to use multi-select.js and apparently this js library sends duplicate ids
ex.
params[:domain][:location_ids] = [","45", "45"] even though the [selected_ids] array does not have any duplicates.