Check exception when getting a module hook service reference.