correct getLatestId when document revision not comes from same family (refs #4216)
Merge pull request #975 from Eric-Brison/3.2-I4216

correct getLatestId when document revision not comes from same family (closes #4216)