Add missing null check in spesh guard handling.