GEOS-5607 fixed exception throwed by nested layer group in Container mode

Hi,

I've fixed GEOS-5607.