Service::action_invoked will not be emitted if only the virtual function is overriden
The code checks if there is any signal handler connected.
If the class was subclassed and only implements the virtual Service.action_invoked virtual function to do the dispatching itself, the signal will never be emitted and all action calls will return 401, Unknown.