Fix layer's bounds extending when painting outside the selected area
When blitting the brush outside selected area we shouldn't actually
write-access pixels. Every write-access extends the extent of the
paint device, which is not what we want.
BUG:394439