Don't write models with invalid data.

Need to work towards a better reporting system for this.