message: browser/base_notifier: check for object early in 'notify'
  We don't really need to build the notice object in order to perform the
  'object' check.
diff: @@ -115,6 +115,10 @@ export class BaseNotifier {
  }
  notify(err: any): Promise<INotice> {
  + if (typeof err !== 'object' || err.error === undefined) {
  + err = { error: err };
  + }
  +
  let notice: INotice = {
  errors: [],
  context: {
  @@ -127,10 +131,6 @@ export class BaseNotifier {
  session: err.session || {},
  };
  - if (typeof err !== 'object' || err.error === undefined) {
  - err = { error: err };
  - }
  -
  if (!this._opt.errorNotifications) {
  notice.error = new Error(
  `airbrake: not sending this error, errorNotifications is disabled err=${JSON.stringify(
  