removeLayer was clearing all the overlay layers..

...from the layer control.  The fail was happening because groupContainer on line 225 was not null, so the "// Create the group container if it doesn't exist" section will never be executed