guard against unknown const types causing NPEs