Fixed a notice for bug #8368.