asyncio_qt: Don't invoke a callback if it has been cancelled.
asyncio_qt: Support newer versions of trollius which require event
loops to provide a create_task method.