Add a test for graceful handling of missing session data