Fix NPE in CachingRelMetadataProvider if arg is null.