*wx/draw3: fix some corner cases crashes

fixes some out of bounds accesses for sets having more than 12 graphs