Bug 1020779 - Adjust the key alignment for the bottom row of keyboard.

Put this function back to the `then()` function. You don't really need to do the assert in the rejected callback because if the promise is rejected it should be caught by `done` in the next `then()`, not your asserts.