More cleanup of TrkMaterialProviderTool
Important bugfixes for crashes when using the GX2 instead of iPatFitter (see !39084 (closed)) and a mistake I introduced with the loop.
There are some more minor changes such as removing a copyright statement.
Edited by Edward Moyse