Fix to bug #629, http://bugs.skysql.com/show_bug.cgi?id=629

Master was selected for routing target even there was a slave available.