Relay master servers must now have a running slave. Also, fix cluster master detection in get_replication_tree().