Fix crash introduced by 6e5c998593842ff76f5d0ae5cab0d03cbe11b607.