There are a couple of ways to overcome this.
Hit ctrl + End - this will take you to the very end of your project. From there you should be able to see the volume envelope complete with the final node. Right click the node and delete it. You might have to switch on Automation Lanes to make it visible, or rather, "non ghosted"
When you export, start by selecting the track(s) you want to be included, then sweep/drag in the timeline to highlight the range to be included in the export. Only then, click File > Export