added some checks to avoid illegally formatted data to be saved
added some checks to avoid illegally formatted data to be saved

MatteusDeloge/opengrid,WolfBerwouts/opengrid,JrtPec/opengrid,WolfBerwouts/opengrid,JrtPec/opengrid,MatteusDeloge/opengrid,MatteusDeloge/opengrid