don't crash when there are no gallery activities