Make the behat scenarios runnable when mongo is activated

- [x] Do not add the document manager into the smart manager registry when mongo is not activated (otherwise, it will say that service is not available)