Fix crash regression in commit 44be0cb (SF-195).