Don't crash when cursor goes away due to removed photo: Bug #732334

When a photo is removed from a collection (moved to another collection
or removed outright), the view's cursor may go away with it.  Add some
code to check for cursor's presence before using it.