Sanity check ruleset data before saving

See patch #4976


git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@25729 a0f10bec-cc02-0410-94fc-a9cfff90b4cd