When catsTreeHtml is empty then return an error object.