Avoid mongodb warnings if mongodb is not available