added try catch block to get node to protect from malformed IDs