Fix bug if metadaURLs not null but empty