Add some error checking
Add some error checking

AmeBel/opencog,andre-senna/opencog,andre-senna/opencog,AmeBel/opencog,AmeBel/opencog,andre-senna/opencog,andre-senna/opencog,AmeBel/opencog,andre-senna/opencog,AmeBel/opencog,andre-senna/opencog,AmeBel/opencog,andre-senna/opencog,AmeBel/opencog