Clear loclist if there are no errors. Fixes #650.