Consistency of a nonparametric conditional mode estimator for random fields