Fix get_absolute_url for deleted persons.

Fix #845
Merge pull request #847 from ostcar/issue-845

Fix get_absolute_url for deleted persons.