Ignore invalid lines in dictionary sections in a ref file