Merge pull request #1531 from RosettaCommons/xingjiepan/LoopBuilder_bug_fix Fix edges cases for loop modeling