A multiplicity result for singularly perturbed problems in topologically nontrivial domains