Modified getAllLayers in ECDetectorFactory to only return PCAL layers to avoid null pointer.