Bug 22813: (follow-up) Add missing condition