Fix error on session_not_found callback