Avoid unnecessary updates for the is_active column.

Fixes #5124