Fixed #3906 -- Fixed the reverse_m2m_name for a generic relation. Refs #2749.