Merge "Fix LoadBalancer::getMasterPos() callers to handle a non-object being returned"