fix(shallowCopy) logic error where '$foo' would be ignored

Introduced in this commit : https://github.com/angular/angular.js/commit/cb29632a5802e930262919b3db64ca4806c5cfc7