Fix logic error in kinesis config handling