Fix suggestion when widget created without JSON.

The hidden suggestion text is not always populated and the code should
anticipate that before trying to inspect it.