svlog: fix infinite loop while parsing module
svlog: fix infinite loop while parsing module

If the body of the loop that parses the items in a module hits the end
of file for some reason, e.g. because it tries to recover from an error,
the loop gets stuck in an infinite loop. Make the loop abort upon
hitting EOF.

fabianschuiki/moore,fabianschuiki/moore,fabianschuiki/moore,fabianschuiki/moore,fabianschuiki/moore