Update sqlrest.js

If you make a request with conditions, it's not required to enter parameters.
Example : 
collection.fetch({query:{sql:'SELECT * FROM mytable WHERE parms1 = param1'}, localOnly:true});