Check for vbucket state only if vbucket is non-nil.