Gallery: Fix logic typo

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