[Georeferencer] fix bad allocation error