Port from gramps34 branch my fix after retest by the bug submitter. Add a hack protection for descendants like we already have for ancestors, and add a debug printout. svn: r23161