For a message like this:
msgctxt "" "context string" msgid "original text"
the former code changed the msgctxt and also added
because it did not find the existing msgctxt on the previously line
To fix the problem, we additionally check:
lastLine !~ /^"/
Thanks to Luigi Toscano for noticing and for his patch that does
basically the same.