Fixing an infinite loop when there is no newline at the end of the file.

If Localizable.strings for some reason has no newline at the end of it, genstring.py runs into an infinite loop.