Fix NPE when submitting error occurred during import.
Merge pull request #619 from jburel/submit-error

Fix NPE when submitting error occurred during import.