Added waiting for yellow cluster state in rest test

In order to prevent rare timing issue, where the creation
of an index happens in the cluster state too late and thus
results in empty mappings.