Don't set hooks to an empty array

Clears any hooks that might have already been set and isn't needed

Change-Id: I01c0865e64754972f732069a1803d9450ce902bb
Merge "Don't set hooks to an empty array"