better error message when TermProxy encounters bad metadata in the graph