Consistent callback style for Pulsar.getAvailableTasks.
Replace next.ifError with an old-school error handling.