Return empty list when dates are not given in AJAX response