So - if I understand correctly, you want to exclude any items from the grabbag that do not have photos associated??
Using: playlistForEvent = ff.grabBagGetAll(evnt.ffUrl, "playlist");
I think what I would do is get the photos as you are currently:
photosForEventsUri = "/ff/resources/Events/" + evnt.guid + "/photos";
photosForEvent = ff.getArrayFromUri(photosForEventsUri);
Then loop over and create an Array of tracks that are referenced.
for (var i=0;i< photosForEvent.length;i++) {
var track = ff.getReferredObject("trackTag", photosForEvent[i]);
playlistForEvent.push(track);
}