fix readURL to only load WMS layers once if the browser history is used