Add null check to KeyEventDispatcher.
am: 2a0e48aaf5

Change-Id: Ibd3ec1f898e9e375a3e7a3decb651d4187cdb4a3