Gallery: Fix logic typo

Change-Id: I4bbd9e63dd3d7b7c980453798a5bacbf1ac836f7
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>