Fix: hasUrn throws Exception if no metadata is available