Fix #20: handle activity task without input in ActivityTask.from_poll()