Fix DB query returning ready devices in LoadBalancerCallbacks

fixes bug 1156782

Change-Id: I6efdb32955c1b1f8f3dec7b3b1581e97ea0af4d8
(cherry picked from commit 0096ce10390af7a6a2fa3501c55cfbe447eb9ba8)