Fix crash on replica set view (issue #15).