fix regression in Map hasLayer