check against NULL node from nodeWithUUID()

closes #1777