Update core-overlay.html

For fixing issue #5 (Stack overflow when closing a dialog while toast is shown)