initialing gridResolution much earlier
Merge pull request #1105 from procrastinatio/wms_singletile_wrong_size

SingleTile WMS layer requests an image with a wrong width to server (r=@ahocevar,@bartvde)