Bug 18651: [QA Follow-up] Fix the MAX(issue_id) calculation