ported fix from 3.2-master

ported fix from 3.2-master for deegree 3.3-master upstream