#5208 wait for index
Merge pull request #5211 from dotCMS/issue-5208-broken-unit-test

#5208 wait for index