r19068: Fix a potential NULL dereference