Detect adding an undefined value to an array with ng-repeat. Fixes #208