Update core-overlay.html

Fix for issue #5 (Stack overflow when closing a dialog while toast is shown)