import changes from SM to allow the UFO file linked on issue 174 to be
loaded without a crash.
Merge pull request #220 from monkeyiq/2013jan/issue174

import changes from SM to allow the UFO file linked on issue 174 to be loaded without a crash.