fix HtmlComponent - check `controller` property first