Fix a bug in determining whether a task is async
Merge pull request #199 from mbautin/fix_async_task

Fix a bug in determining whether a task is async