CBQE-984: fix AttributeError: 'dict' object has no attribute 'find'

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