fix npe in MenuServices occuring if deleted xojbects exist in menu
definition.