Remove extra column at end of non investment lines in csv export
Cherry-picked from 8b52797a5c960966988ff04d85593e7af0287af9 and adjusted to master