#3571141: Fixes a regression in hook discovery

Closes #3571141

Merge request reports

Loading