Type Ia supernovae and planets in star clusters