Fixed issue #8876: Print answers shows fatal error if session expired