MB-10908 Prevent error_logger from logging huge terms.

Change-Id: I1c376d3da74fd3ac526fe3c78bb38da7ea0aa01b
Reviewed-on: http://review.couchbase.org/36116
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>