Fix NPE when there is no relying party metadata