Bug 998106 - [B2G][Gaia][FTE][Keyboard] Selecting languages other than
 English during the FTE causes the associated keyboard not to load.
  - Filter out "language to layouts mappings" if the layout is not
    preloaded.
Bug 1091067 - Making sure the edge zones aren't covering the app chrome in landscape.
Bug 1095369 - [FFOS2.0][Woodduck][Browser]Wallpaper will display when edit bookmark

When changing orientation from portrait to landscape and resizing with keyboard on, the layout manager in the system app will resize the height of the active app first with the keyboard height in portrait (line 55 in layout_manager.js). When the height of the keyboard in portrait mode is bigger than the height in landscape mode, the calculated height of the active app will be smaller than it should've been. The system wallpaper is visible at the mean time. Subsequent resize events later will immediately correct the active app height using the correct landscape keyboard height.

The resizing event sequence is 'resize' --> 'keyboardchange' --> 'keyboardchange'. This patch disables the keyboard height check in the 'resize' event since it'd be incorrect during orientation change, which would display part of the system wallpaper in a flash.