stub()/stubs() should not fail if passed null/undefined

* Basically, if passed null or undefined, return it; otherwise,
  modelize/stubify.