get_replication_tree checks for SERVER_IS_DOWN

get_replication_tree checks for SERVER_IS_DOWN, this will produce a
replication tree even with servers in SERVER_IN_MAINT state
root server IN_MAINT returns NULL to caller

the replication tree returns NULL if the root server is maintenance mode
code cleanup

code cleanup