Keyboard not falling back to default layout when it can't find active one

REPRODUCIBILITY: 100%
OS VERSION: 4.5.0.16
HARDWARE: Xperia 10
UI LANGUAGE: PL
REGRESSION: NO

DESCRIPTION:

The bug is quite simple. If somehow our

dconf dump /sailfish/text_input/

shows that we have set some active layout that’s not available
the system should fallback to some default.
This bug is related to the following bugs:

PRECONDITIONS:

Pressage keyboard installed and select, then pressage just uninstalled without changing active layout or
just modifying dconf like:

dconf write /sailfish/text_input/enabled_layouts '["en-missing.qml"]'

STEPS TO REPRODUCE:

  1. in console do:
dconf write /sailfish/text_input/enabled_layouts '["en-missing.qml"]'
systemctl --user restart maliit-server
  1. open anything that need user input, like message and try to show keyboard.

EXPECTED RESULT:

Default fallback keyboard is shown

ACTUAL RESULT:

Only keyboard placeholder is shown exactly like in the linked bug

MODIFICATIONS:

none

ADDITIONAL INFORMATION:

can occur when someone install pressage keyboard, active the layout, then remove it but active layout will stay.

Added to internal bug tracker