make dump tolerate undefined fields. fixes #3386