Prevent infinite recursion in nodemetadata string parsing.