Move the short-circuit back into the QTransform

want to take a closer look at the travis run.
current run failed just one test:
https://travis-ci.org/qgis/QGIS/builds/42632320