scripts/urbandict: handle malformed JSON replies