A man who was with a group involved in an east Belfast acid attack has avoided being sent to jail.