fixed callbackOrDummy to play with null

Sometime `callbackOrDummy` called with a `null` then it breaks tests.
This will fix it.