PolylineContainer: fix NPE