Fix bug in gallery - now check if gallery exists while changing language of category