Add a check to avoid overwriting cheat file with old content.

Like overwriting cheat file with empty content when use import cheat.db.