Fix getCapabilities on maps with no layers