If loading an application trigger an ImportError, the details of that error were lost in some cases. Thanks Ben Davis for the report. Backport of b161c01 from master
b161c01