A protestor who smashed the display case containing the Stone of Destiny at Edinburgh Castle has been spared a custodial sentence.