r14080: Fix Coverity bug #18. Ensure non-null before ref.