Pakistani YouTube star Rajab Butt has avoided jail after promising a judge to upload animal rights videos for a year.