Perturbing singular solutions of the Gelfand problem