Reproducer for BZ1005204
(cherry picked from commit e7bca8286a87096aff7bac113569345d95a4cfe9)