[webui] catch invalid packages in attribute/edit