Fixed crash bug introduced with mongodb error messages.