[454119] Guard against NaN coordinates.

In some situations, a LayoutAlgorithm may set a location/size to NaN. This is an
error as the Geometry API cannot process NaN values. Therefore, when setting a
location/size, NaN is replaced by 0.
[454119] Copy objects when retrieving layout properties.