Don't crash if there are no ibus keyboards installed (FWNX-1382)

If IBus is running but there are no ibus input methods listed in
the IBus Preferences we shouldn't try to set an ibus keyboard. This
might actually fix FWNX-1382.

This is an improved version of the previous reverted commit.
The additional changes will hopefully allow the tests to pass on TC.

Change-Id: I51518666648e516399c1f8426785469aaa1b263c
Merge pull request #42 from sillsdev/CherryPick1382FinalVersion

Don't crash if there are no ibus keyboards installed (FWNX-1382)
Bugfix for issue WS-55

Windows line ending issue with the default
text for testing the sort rules in the
WeSay configuration Tool.