mapfishapp: fixed XML documents miss the prolog - closes #4536