Fix an error check after r342699.
Reported by: gcc MFC with: r342699 Sponsored by: The FreeBSD Foundation