JC-9 added server side check for empty timespent

Signed-off-by: Jan Zieschang <dev@zieschang.net>
JC13 #time 2h #resolve #comment
* fixed display issues with empty divs
* display time spent user friendly
* some error checks before update for JC-9

Signed-off-by: Jan Zieschang <dev@zieschang.net>
just a rule