Fixed a bug related to the identification of WMS layers that do not contain data