Allowing conditions to be evaluated for tools without layers

This allows an "item" tool like the "move to" tools in the examples to
possibly show a cursorNo upon click if the condition fails.
fixed potential bug
Merge pull request #2 from boneskull/master

Allowing conditions to be evaluated for tools without layers