adapt register_laser_hooks to return ValueError
adapt register_laser_hooks to return ValueError

This is added because the function register_hooks also works this way

b-mueller/mythril,b-mueller/mythril,b-mueller/mythril,b-mueller/mythril