Fixed a bug on public index view's controller

On my fresh install of PyroCMS 2.1.2 Pro. "galleries/index" doesn't
show anything on its index page (although I've uploaded some public
galleries).