[webui] do not crash when branching a package from remote