Fixed a bug causing modal dialogs not to return a status code.
Previously modal dialogs running in this engine have returned None
rather than a QtGui.QDialog.DialogCode. This small change ensures that
the modal dialog return value propages properly to the caller.