[Georeferencer] fix bad allocation error
Merge pull request #1216 from minorua/georef_bad_alloc

[Georeferencer] fix bad allocation error