SDL2: added safeguard for SDL2 method