Fixed #23862 -- Made sure m2m fields through to_field correcly work.

I found this inaccurate comment while investigating uses of `get_related_field()`.