When can a guarantor rely on a right of subrogation?