Fixes STI when 2+ levels deep.

PR #14052 Added a regression where it was only looking for methods in one
level up, So when the method was defined in a 2+ levels up the
inheritance chain, the method was not found as defined.
Merge pull request #14345 from arthurnn/revert_14052

Fixes STI when 2+ levels deep.