Corrected Dispatcher.get_endpoints() for the discovery process

The method returned an empty list.