Effects: Don't overwrite display:none when .hide()ing hidden elements

Fixes #14848
Closes gh-1548