hack for avoiding libmongoclient to crash on broken cursor