BUG:375253 Don't set the brush dab rotation to NaN.
This follows up on the previous commit (ac257511dbec0a3191bbfdde9d886b70ec6ad574),
which had the wrong header... It wasn't a bug in QTransform, because
if you set the transform's rotation to NaN, sure, it'll create an
invalid rectangle.