Property (R) under perturbations