Fix getCapabilities on maps with no layers
Merge pull request #4547 from jlarouche/capabilitiesemptymap

Fix getCapabilities on maps with no layers