A woman has been found not criminally responsible for killing her two young boys despite dozens of Google searches relating to taking their lives.