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!
Merge pull request #1429 from christianurich/QgsDatumTransformStore_transformation_0

Fix crash when QgsDatumTransformStore::transformation returns 0