gdi32: Avoid null pointer access when we are out of gdi handles.