This caused math to assert out because it never wrote into the buffer. Now, presumably it wrote somewhere but I don't know where, so fixing this seems like a good idea. Fixes #9735.