Correct inaccuracy in docstring warning message

Refs #8738.