CMS-1476: Added null check to index name.