A few points:
* If the dummy parent exists, there should ever only be one of them, so don't just filter them out of the set of all parents.
* If this is a root sample, the "correct" behaviour should be that the parents set is empty (though perhaps keeping the above guard)
* Fix the client end to stop ending the dummy parent sample object.