fix checkArguments in the Hooks class (v 3.7.0)

Change-Id: I068f48fa3f04500e49184c49ab25b853dbdc44d9