element.getCTM() returns `null` if one of the transformation matrices is zero. This fix uses get_transform_matrix instead.