Bug 1018035 - v1.4 cursor hidden activity

nit: Maybe we can remove this ```if``` because ```this.append\this.prepend\insert``` now can deal with invalid content?