Nokia's earnings exceeded expectations despite a slight revenue miss.