check resource is not null before trying to return to JedisSentinelPool