When a single value is returned, the list wrapper is not present in the json payload. This patch ensures that the result is always a list.