Added check on the existance of the export route

Added check on the existance of the export route