Remove extra "is invalid" message.

Fixes #1101.