Fix print of WMS layers

Makes tiled and external WMS layers to be printable.