Fix extra newlines in error line contents printed by scanner
Return from parser::deviceList() if END is found without any devices being specified

Stops examples/errors/3.gf2 treating CONNECTIONS and MONITORS as devices and complaining about missing semicolons