CxxUtils+AthenaKernel: Fix problem with trimming last element.
We forgot to get m_last to nullptr if the last element gets removed by trim(), which was leading to use-after-free errors. Fixed. Restore the change addressing ATLASRECTS-7421.
See also ATLASDQ-1073.