fix for MODX Bug #4484

http://tracker.modx.com/issues/4484
I think this would only happen on a really slow connection after some
timer expired
Merge pull request #209 from Cipa/develop

fix for MODX Bug #4484