do not change internal properties in invalidateSize() when map is not loaded
Merge pull request #2250 from Zverik/sizechanged

do not change internal properties in invalidateSize() when !map._loaded