Enumerable.matching_document _unloaded double query fix

When there was a many to many, and the target was not loaded and target.first was called, _unloaded was calling the db twice in order to load