Update SequentialLayout.js

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