Fix for BeginDraw returning false in scenarios where it should block instead.