Initialize layerGroups member to an empty array

Otherwise, a call to renderGroups fails when it tries
to iterate on an undefined object