Node Wrangler: Add more specific poll methods
Since it is useful to set a poll message to tell the user why an
operator cannot be called, decompose poll conditions into basic
functions and make every operator use them.
- Make the basic nw_check report issues.
- Add functions to check that:
- the node tree is not empty,
- a node is active,
- a specified number of nodes are selected,
- the active node is of a specific type,
- it has visible outputs,
- there is a viewer image.
- These functions report the issue to the poll message otherwise.
- Go through operators and add or update poll methods using those
various functions.
- In a few operators, remove obsolete error reports that are now
caught at the poll stage.
Fixes a few issues:
- PreviewNode would not work immediately when the active node was a
material or world output.
- ReloadImages needed an active node.