Fix bug where would fall into infinite loop if hadronisation failed