An 18-year-old man has been spared jail after he spoke about burning down a mosque in an online video and shouted “utterly vile” abuse from the top of a phone box during the summer riots.