Detection of a signal of random form in the case of nonparametric a priori uncertainty with respect to the distribution of observations