Merge pull request #1566 from RosettaCommons/dimaio/mg_cartmin_issue
Rosetta crashes when bondangles were minimized with an Mg-containing pose. The issue arises due to the input_stub logic selecting three collinear atoms to build the stub. As a quick and dirty fix, reorder the Mg atoms so this does not happen.