I uploaded a revised version that (possibly) corrects NaN error. I'm not certain because it turned out to be a platform-dependent issue. I could not reproduce it on a Linux desktop build, but I did get the NaN on a Flash build. If you still see it, please let me know what platform you found it on.
The other error isn't a problem with the code. You just used the block in the wrong way. "connection exists between" only checks if two nodes are connected by an edge (i.e. they are directly connected)--not if a path exists from one to the other.
I don't think the original documentation made the point clear, so I modified it: "Returns true if there is an edge connecting the two specified nodes. For one-way connections, the source is the first node, and destination the second."
The 'find path' block will return an empty list if a path cannot be found, so you should be able to use the "list is empty" block to check whether or not a path exists.