Sales success in China, driving quarterly earnings higher than expected, has helped Nissan revise its annual outlook to a profit from a loss.