Fix a cli/check_field_visibility issue.

check_field_visibility won't return false when we call code
from the CLI.
Merge branch '1.x' of git.artefactual.com:atom into 1.x