screen.fillRoundRect when given a width or height less than 0, throws errors

The specific error is [object Object], which personally makes no sense given that it just needs to draw a rectangle, but I don't know exactly how roundrect does it so maybe it's perfectly valid. It also occurs with drawRoundRect, and it doesn't matter with either of them if you actually use the radius parameter or not. Also, this error persists until you not only fix it but also reset the display. It does not happen with drawRound or fillRound, however.