Fix NPE with fullscreen keyboard

Change-Id: If831d0758bcaf153d3094c58ddd8ba3f3444ad89