CBQE-1716: fix to check if view compaction is running

Change-Id: Ie2b2b9ec37c7cdc1c4f281c9251203d20ef46a9e
Reviewed-on: http://review.couchbase.org/31262
Reviewed-by: Meenakshi Goel <meenakshi.goel@globallogic.com>
Tested-by: Meenakshi Goel <meenakshi.goel@globallogic.com>