[CDE-253]: fixed bug in getHtmlObjects function