fix potential NULL dereference (bug 11880)