update get_parent_location method to select non-orphan parents from mult...

...iple parents

STUD-2007
I think we need to change the `else` clause on L1289 (I can't comment there) to verify that only one parent has `revision=None` and, if not, to do the repair work you have above (find out which parents terminate before `course` and remove all the connections.