RAZ-1797: Record maintenance and rebuild of search engine would throw error on cloud based URLs