[imp] deprecate JHtmlMessages::state() function