only pass collections to renderEmpty()
Merge pull request #137 from amdprophet/fix_null_object_error

Only pass collections to render empty method