Fixed bug that somtimes crashed ftp script

If there was no adherence, the trip id woudn't be set, and the script
would crash when it tried to read the trip id later