issue #988 on Win32 DrawRectangle throws an exception if asked to draw with the null brush