Fixes #1

Invalid argument supplied for foreach() fixed
https://github.com/sieppl/yii-json-dataprovider/issues/1