Fix exception when a symbol is used on numericality validator

Fixes #981