Fix null getNewParser (again, and add test this time)

One more bug that broke getNewParser returning null.
Because I fucked this up twice, I should probably have added a test again.