pmdinfogen: fix null dereference