Correctly display prompt numbers that are 'None'

Fixes #6702
I think checking that the prompts exactly match this is a bit brittle, because if you e.g. add one cell for another test, this will break. I'm not sure what's a good way to write the test, though.