#555128 by Dave Reid: Fix node_access() return value to work how it is documented and include a slight performance improvement