Fix apply --recount handling of no-EOL line