do not add comma if last block fail

If the last block fails, a trailing comma is printed, like:

    ,[{"full_text":"Time : 11:50:54","color":"#00FF00","name":"time"},]

This commit fixes this issue. Fixes #3.