Fix error-handling paths for numeric conversions so that
dummy lexemes get inserted.