Proper check for empty ViewSequence

If array/viewSequence input is empty, the previous loop will still run at least once. Throwing error because currentNode.get() is actually null.

ViewSequence should also check for empty array inputs.