Small tweaks to the HPM Hook handlers (improved retVal initializations)

Signed-off-by: Haru <haru@dotalux.com>