Fix the issue with stats API call

Initial version of stats API method retuned dict,
but last version return an array.

Change-Id: Ic9e8e8ab2ed7166825b82479951919ecdb26f447
Merge "Fix the issue with stats API call"