fixing clean_indices method to accept elasticsearch 1.4 changes