A farm has been sentenced after a young man was killed while trying to clear a blockage in a grain bin in Hawick.