Bz1172548 oo-last-access does not accept gear uuid when USE_PREDICTABLE_GEAR_UUIDS="true"

Fixed the logic for determining what is a gear.

Also noticed that restorer.php would also reject predictable UUIDs and fixed that.