PUD: change signature of getBestUplinkGateway function