Refactoring and cleanup of error handling in RDF Import page