Clear button is shown only when text is present, resolves #206