r14115: Fix coverity bug #23. Don't deref a potentially null ptr.