[master] solved JS error when 0 comments as the sort bar was not present.

when there are no comments the sort select is not present so we get an error.