html: use return_val_if_fail