task queue: fixed attaching callbacks to non queued tasks