Added check for invalid national ID values in converter script