Comedian Mike Ward’s joke about a 12-year old has landed him in court and put a brand of very edgy comedy on trial