Check if polygon is a rectangle when drawing gradient

DrawGradient should check to see if the polygon is a rectangle before
adding the gradient to the metafile. If it's a rectangle, we are
currently unnecessarily adding XGRAD_SEQ_(BEGIN|END) comment records.

Change-Id: I38aef322469f45403ed105d971d7e1d1441ba6a0