Revert "Cleanup QuestionPlugin::saveRelationships()."

This reverts commit 0e8352c0ada5c154ca9a0ea1bcd3fe3b152e18c0.
Fix broken test cases.