fix incorrect syntax in if else branch

Change-Id: I5b43aa85c6824eff314802a41e44a786e8804693
Reviewed-on: http://review.couchbase.org/42812
Reviewed-by: Venu Uppalapati <venumahesh@gmail.com>
Tested-by: Venu Uppalapati <venumahesh@gmail.com>