Fixes problem raised in #1431 (```get_transform``` should not affect ```is_transform_set```)

Please note:

The *expected* behaviour here is that specifying a ```transform=None``` is different to not providing the transform argument at all.