Fixed bug in _checkDisabled that was causing hasLayers to be set incorrectly.