LT-14222, prevent a crash trying to set focus too soon

Change-Id: I819b0549c361140d45faaee5d146c1ec13c5b38b