CSPACE-6198: Fix test failures in RelatedRecordsListTest.html and SidebarTest.html