Fix for the issue of detecting an unconfigured slave with empty master_host

This should fix the issue with change master command