Fix issue #7526. Reload the target if it's stale.

* This has been fixed at master via
  [365b8b6](https://github.com/rails/rails/commit/365b8b6db750151b786b0a7ef9e65a6824576f1b).
  but not at 3-2-stable.