Fixed none working hint class replacing.

If a hint become focused the new hint class was not set properly to the
element. And the hint class was already set if the hints where cleared.