Problem with publishin project on GroupShare after calling GetProjectStatistics on project

Hi,

I have noticed that after getting project statistics with GetProjectStatistics, publishing the project on GS is not possible netiher via PublishProject, nor in the Studio GUI.

The error message is this:

The Execution Server failed to publish the project: The element 'PackageProject' in namespace 'http://sdl.com/projectserver/2010' has invalid child element 'WordCountStatistics' in namespace 'http://sdl.com/projectserver/2010'. List of possible elements expected: any element in namespace '##other'.. Check the Execution Server log for more information.

I have noticed, that calling GetProjectStatistics adds this tag to the project file:

<WordCountStatistics WordCountStatus="None">
<Total Words="0" Characters="0" Segments="0" Placeables="0" Tags="0" />
<Repetitions Words="0" Characters="0" Segments="0" Placeables="0" Tags="0" />
</WordCountStatistics>

If I remove this tag manually, the upload works. I'm not sure if this is a bug, or I'm doing something wrong. I can remove this tag programatically, but probably this is not the best solution.

Do you have an idea?

Thanks in advance,

Tamas

(Studio 2014 SP2, GS2014)