Fix range for initialisation of TOT constants from DB
Fixing an invalid read in TRTToTCondAlg reported by valgrind. Thanks to @hansenph, for spotting the inconsistency of the loop index and the array size in the DB. Fixes ATLASRECTS-4163 and fixes ATLASRECTS-5068.
Local qtest was fine. I was not able to reproduce the valgrind output locally, so this has to be repeated centrally.