panelview: Guard access to containment in geometryByDistance
During construction of a PanelView we can call back into this function from Qml but the containment() is only set afterwards.
During construction of a PanelView we can call back into this function from Qml but the containment() is only set afterwards.