Overlay: Fixed incorrect overlay border in IE8 (fixes #5274)