Angular 1.0.x compatability - Guard for controller.$setPristine

Similar to ff3ce10e4cbd37e4c10583404b7176d51db9cede - prevent errors with versions of angular before $setPristine was available