avoid invalid sql statement when where is empty

I was dynamically creating an object to set the where option. If `opts` is an empty object it throws an "invalid SQL statement" error. This additional check transfers `where: {}` to `where 1=1`
```javascript
collection.fetch({
    sql: {  
        where: opts
    },
    localOnly: true
});
```