Prevent 500 error if commit date is nil

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