[gridfactory] Fix compiler warning for deprecated insertElement
- The deprecated interface exists and should be marked override at least until release 2.8 including the release.
- After 2.8, i.e. 2.9-git the interface can be removed and is also removed here in foamgrid