KAZOO-1897: fix When empty list is passed to wh_json:flatten