Don't crash search when getKeyDispatcherState() is null

Fixes http://b/editIssue?id=2150672

Change-Id: I6fb87c1a59b4b3a945822932047a66c4116e6391
1 file changed