Backend GTGOnline for GTG Python3

Too complicated line and it is going to raise IndexError without task
```python
task = self.hash_dic.get(task.get_id())
if task:
    task_id = task[1]
    remote_subtask_ids.append(task_id)
```

A bit more verbose, but easier to follow (and also makes you aware that task can be None