MB-10506: improved document title behavior

Now docs_title will be collapsed when document error occurs.
Also added title attribute to error container.

Change-Id: I3ba0ac2255e7262f662cdb474e0c1e2fdce7ce5d
Reviewed-on: http://review.couchbase.org/35676
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>