NPE fix for PerimeterProfileTool