Do not use partially checked state of legend nodes when layer is not visible

This is slightly confusing, moreover in some styles the items are not immediately
updated, producing a weird effect when hovering mouse over legend nodes.
http://www.youtube.com/watch?v=HNDE1Xp5UZA&feature=youtu.be