Tolerate broken group database on Heroku.

Closes GH-1329.