Tries to import mongoengine's get_document.