Anomalous Hall effect from gapped nodal line in the Co2FeGe Heusler compound