fix uncatched error with missing polkit. Closes: #5955