[Georeferencer] fix bad allocation error

This patch will fix an issue reported to user mailing-list (http://lists.osgeo.org/pipermail/qgis-user/2014-February/026287.html).
I hope that this commit is backported to 2.2.