Fixes #212: ti.current module null exception handling