Fixed issue where KML button would not work if directly navigating to URL with enabled layers.
Fixed issue where KML button would not work if directly navigating to URL with enabled layers.

AppliedIS/ogc-preview,AppliedIS/ogc-preview,AppliedIS/ogc-preview