Fix a potential NULL dereference in md/raid1