Fixes exception when init is null
Merge pull request #61 from goatslacker/dont-die-on-undefined

Fixes exception when init is null