Fixed TreeBehavior::recover() when using scope. Fixes #4062.

Refs [#4062](https://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/4062-release-240-broke-tree-behavior-recover-function)