This assert was not removed when the issue that cause the assert to trigger was fixed in 0f5e994. Fixes #7121
0f5e994