Fix: avoid segfault by generating <metadata> for relays
Merge branch fix for <metadata> of relays.