flac: fixed tag writing regression and related error reporting