isl_qpolynomial_opt_on_domain: handle empty input