On the survival of resonant and non-resonant planetary systems in star clusters