Import dialog cancelling

The import method will no longer error if any of the dialogs are
cancelled. (With a return statement if any of the dialogs return null)