[PATCH] gdiplus: Check status as well before using bitmap