Fix for TypeError - #497

TypeError if append_domain option is not specified in config.