Imitate behavior of named tasks and transactions
Avoid NPE when no environment has been initialized