fix(data-mask): compact JSON array when removing an element (#13818)