Fix bug when session does not exist
Fix bug when tripid/activationkey does not exist