Fix lua storage support.

The export_dispatched routine may not be binded in Lua. Do not try to call
it when it is null avoiding a sigsev.