Make validation not crash on missing id fields