SDL: added safeguard for clearOverlay() if overlay is closed