Proper handling of the BeginDraw shortcircuit when the graphics device is no longer valid.