Some packages use {weak:true} as the second param

Some packages including redis-livedata use {weak:true} as the second param such as api.use('insecure', {weak: true}). This throws an error because objects don't have indexOf().