Fixed error that prevented people from commenting on commit history

This pull request will cause with pagination (it's really small, but it still bugs me). Nothing will break, just that pagination won't show unless you refresh the page. I'm going to fix that tomorrow when I experiment with using Kaminari