Check for isNaN when getting an index from redis - fixes when redis returns nil for a non-existent index