[releng] PR #7798: Use the correct index number to trim container base image tags