fixed possible crash when exiting vehicle interaction menu

fixes #2932 (both issues)