Raise an error for has_one associations which try to go :through a polymorphic association [#17263]