bug-fix; controller with no pages throws in page/index call