Apply setdefault to kwargs in make_handler