Don't write the same bug ID to the viewed array twice.
Viewed bugs are read from the prefs file.