[1.6.x] Fixed #20767 -- Fixed ModelAdmin.preserve_filters for namespaced URLs.

Thanks Collin Anderson for the report.

Backport of 2fc6c9472c from master.