CBQE-1254: fix generating expected docs

Change-Id: I21fe8872a7986d9c1b44381b395fdd4086e36408
Reviewed-on: http://review.couchbase.org/26080
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>