The delObjects function which is used to removed objects should use hasattr( aq_base(cont), id ) instead of hasattr(cont,id) to filter out the invalid ids. Otherwise, it can ask the container to remove non-existent objects.