Add error handler for missing session data in callback