Gallery: Prevent display "Show on map" menu if no geo view is present

Patchset 2: Fix compilation issues

Ported from cm-10.1: http://review.cyanogenmod.org/#/c/49483/1

Change-Id: If069cb796e0ef0aadbc27d4970d2681b702fd64b
JIRA: CYAN-2005
Issue: https://jira.cyanogenmod.org/browse/CYAN-2005
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Gallery: Fix logic typo

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