The New York Times Company reported a quarterly loss, hurt by sale of The Boston Globe