Verify that the field is not None before trying to access the rel property. Rel #21129.