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

Closes #3964