This was the unintentional catalyst for finding the problem in #6329, but it is preferable to add a test if necessary.