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)
mentioned in commit 0de0716e