[1.7.x] Fixed #23078 -- Regression in update_contenttypes() interactivity.

Thanks raymond at adaptiv.nl for the report.

Backport of fa3cf006b2 from master