KnowledgeBase: fix infinite loop bug
KnowledgeBase: fix infinite loop bug

        - add check for insertion of invalid transformation
        - fix code duplication with lambda function
        - adapt internal API

steup/ASEIA,steup/ASEIA