hp-3478a: avoid NULL dereference in config API routines