Bug 1094122 - Do not save activeLayout to settings if setKeyboardToShow is called with undefined index