But stronger second-half helped limit its full-year headline loss.