Fix a potential crash in parse_primary_expr/1.