If those jobs are really absolutely vital, in a basic income regime they would be well paying enough to entice people to earn the extra disposable income.
I struggle to understand how anyone could consider that a bad thing other than for completely selfish reasons.
Having a massive quasi-legal underclass is a choice and it doesn't require UBI to solve it.