fix WmsLayer initializing exception

This fixes unhandled exception when initializing WmsLayer with URL that
points to invalid GetCapabilities XML document (fixes #4)
Merge pull request #6 from kubaszostak/wms-initialization-error

fix WmsLayer initializing exception