You can also do this:
<Extended Playlist generator>
Query: %__replaygain_track_gain% MISSING
->Generate Playlist
Then just Right-Click on the Playlist tab and 'Remove replaygain info'. I guess that if you have a large music collection and a lot of replaygain files, it will take some time and sometimes foobar seems to crash or hang, but it's just that it's working on it
Anyway, my advice is: replaygain all your files. It can't do any harm to your files