Bug Print when map.resolutions is null

Using map.scales if map.resolutions is null