this adds a break statement in the loop checking

ontology shortnames.
Merge pull request #567 from teravest/fix557again

this adds a break statement in the loop checking