r19075: Fix a potential NULL dereference