Fixes has_changes to search all the way to leaf nodes
Merge pull request #4302 from edx/benmcmorran/fix-has-changes

Fixes has_changes to search all the way to leaf nodes