Fixing issue where local secondary indexes is empty causes AWS exception