Fixed #13794 -- Fixed to_field usage in BaseInlineFormSet.

Yes, I asked the same question on the ticket. `test_inline_model_with_to_field_to_rel` is the test that exercises this logic.