Fixes #3722 - Line shape had an undefined exception when nested inside a
container that was hidden at page startup due to that state not being
visible at startup time.