A young man will walk from prison on bail, despite having been convicted of a shocking attack stomping on a policeman's head.