(bug 41199) Fix the problem with placing cursor by clicking next to article content.

The specific use case is when user clicks on the left side of the inline alien node which
is at the beginning of the line or on the right side of the inline alien node at the end of
the line. This fix does not cover Monobook.

Change-Id: Ib24b03e30e753850698ed6b10be49b4f2642c92b
Merge "(bug 41199) Fix the problem with placing cursor by clicking next to article content."