Quick fix for IE typing after generated content

The previous check was incorrect and was setting selection
too often.

Change-Id: I1ac393c149b6f814949b84e47faa04906c94f6af
Merge "Quick fix for IE typing after generated content"