if 'term' is specified as a field type and the field is empty or space-only, return that atom ' ' rather than a variable.
Also, issue an error/warning if can't convert to term. I think it is better than before.
Authored by: "kifer" 2017-11-27
Parent: [r9163]
Child: [r9165]