Tomahawk-wielding robber avoids jail sentence