Fix issue where associated WMS layer is remote
Merge pull request #583 from elemoine/fill-wmts-fix

Fix issue where associated WMS layer is remote