Error checking in node look up

Added error catching in node data lookup to make sure that the data
returned is valid without crashing the webpage. Refined object searching
to prevent memory overflows