Issue #3485117 by nexusnovaz, godotislate, nicxvan: Fix return type on HookCollectorPass::collectAllHookImplementations()
(cherry picked from commit 2546cebc)
Closes #3490347