Check if node exists before trying to add its name to the title (#362)