Fixed nullpointer when polling client and it returns null target.