Platform: fixed Sdl2Application::tryCreateContext().

It seems that the context is negotiated when creating the window, thus
it fails there and not later when actually creating the context.