checking for null stream when generating oai-dc