fix content assist autoopen problem on firefox

on firefox the innerText property can be undefined.
On chrome, it is always a number.