Fixing issue where local secondary indexes is empty causes exception from AWS