Fix empty sort label on issues page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Prevent 500 if data[:commits] is nil for event

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>