LT-13805 - Add null selection guard on up/down key handler

Change-Id: I1a7320a7850b21686cd6b51a4d80780cd53af3b3