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

Fixes #14848
Closes gh-1548
(cherry picked from commit 890d441aa5d319e49951ba6f0ec719cd4cb96759)

Conflicts:
	src/effects.js