Add bounds checks to avoid pointles crash
Add bounds checks to avoid pointles crash

misgeatgit/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,AmeBel/atomspace,inflector/atomspace,inflector/atomspace,AmeBel/atomspace,AmeBel/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,inflector/atomspace,AmeBel/atomspace,rTreutlein/atomspace,misgeatgit/atomspace,misgeatgit/atomspace,inflector/atomspace,AmeBel/atomspace,inflector/atomspace,rTreutlein/atomspace,rTreutlein/atomspace