Avoid error if transform happens to be 'none'

Fixes #1707