A man who used social media to post an offensive comment about the fatal bin lorry crash in Glasgow has been cautioned by police.