Slate: Check for undefined in cycleLeft() and cycleRight().