Fix potential missing metadata metrics