Followup for bc989831. The original reproducer still works w/o the unref, and doesn't work with this change. (cherry picked from commit 13bb1ffb) (cherry picked from commit d82da0f0) (cherry picked from commit c15e100e)