Fix further null ref exception in getting keyboard names

Change-Id: I3a87bf1340efafa14f3de5e2585c99275a34a9cb