How about ensuring `options` is always an object? eg. `options = options || {}`

Alternatively `this.contactsDb = options && options.contactsDb`