r16153: Fix possible NULL dereference found by Klocwork # 252