Revert "Revert "WICKET-4948 fix vertical centering of modals in safari" safari seems to work fine now. WICKET-5224"

This reverts commit 8fda26e515f83540ead654d997a5ffd8844ee839.