Fix Mongoid config.
Update Mongoid config to handle non-existent records.