removeLayer bug fixed

removeLayer removed layers even if did not belong to it. I fixed the
condition to check if the layer exists within the group.