Don't ignore joins from association scopes in eagerload

Pull request for https://github.com/rails/rails/issues/12492

It'll need a test adding; I was hoping someone else might be able to help me with that. This fixes my example in the original issue and the test suite doesn't break!