Fix wrong generated query for GetCommitsFromCheckpoint.