Fix bug related to limit parameter for dynamodb2's query method