Updated getIndices to give a proper warning if no coefficients are different from 0 in the threshold analysis.