engine:

Fixed a error refactoring error.
Merge branch 'read-logic-trees-from-db' of https://github.com/larsbutler/oq-engine into streaming-xml-writer