[mytornado.httpserver] fix sometimes TypeError