The WAGGS project – II. The reliability of the calcium triplet as a metallicity indicator in integrated stellar light