Added some sanity-checking when adding RRD metadata.