Fix unreliable injector behavior

The optional function pointer was not initially NULL.