Fix api double emit on comment nodes (fixes #876)

Ok, now I fixed core itself to prevent bug