Fixes #212: ti.current module null exception handling
Merge pull request #220 from jonalter/212

Fixes #212: ti.current module null exception handling