Fix crash when QgsDatumTransformStore::transformation returns 0

Simply fix to prevent crash if QgsDatumTransformStore::transformation returns 0. Works for me but has not been further tested!