Fix checking for coroutine in HTTP server

The `inspect.isgenerator` doesn't work if `PYTHONASYNCIODEBUG=1` is
enabled, because all coroutines become `asyncio.tasks.CoroWrapper` in
this case