SDL: added more safeguards for overlay functions to prevent crash between switching rendered after returning to launcher