Fix: for AngularJS 1.3.x

This is compatible with angular 1.3.x where `$$invalidModelValue` was added.