Robustness of the Rotor-router Mechanism