Correct handling of sentinel events when polling without removing events Fixes https://github.com/libsdl-org/SDL/issues/5350