Transition cancellations of 87Rb and 85Rb atoms in a magnetic field