Looking at this now, it's probably better to define staleRect when each `"Canvas"` object is created, to simply avoid the check here completely.  But for now check against `undefined` rather than `null`.