bug 899582 - take account of deleted versions.