Skip transitions for invisible nodes. Fixes #2105.

This is not only more efficient, but also required since it seems
transition events are not fired for invisible elements.
Merge branch 'master' into jquery-ui