repsponse of phantomjs server in export-server can lead to StringIndexOutOfBoundsException, fixes #2367