Avoid exceptions when setting AspectRatioContainer