Add support for older versions of txmongo