Remove auto creation of new nodes in ViewSequence getNext/Previous

Protects against infinite loops when the sequence is an empty array.

```javascript
sequence = new ViewSequence([]);
while (sequence) {
  sequence = sequence.getNext();
}
```