Check for the state of wp-config outside the modify_ method.

See https://github.com/wp-cli/wp-cli/pull/486#discussion_r4492066