added built-in exception UndefVarError to manual

Backport of a8c4ad3ea55d2cb9602cac9c3b32fba32bbb5ac9
see: #8386