fix(ngRepeat): should correctly track elements even when the collection is initially undefined

Closes #4145
Closes #3964