Fix build: error: ‘guard’ was not declared in this scope

Change-Id: If2334079e4494d60bec1b616102175f531343bd9
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>