Fixes #PNM-1510. Called the correct method Hook::getModulesFromHook()

PNM-1510 is a valid bug. There is no method defined in Hook class as getModuleFromHook instead the correct method to be called is getModulesFromHook().