Fix a segfault in the pub local parser.