Update EnsureIndexes.php

ensureindex is deprecated updating