MB-6895 Correct error processing for dev views

Change-Id: I51ad9fa63cc0b415cb992601c16c4b5c8f396c49
Reviewed-on: http://review.couchbase.org/24481
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>