Missing initializer caused "TypeError: initf is undefined"

if an initializer does not exist, don't try to execute it.
Merge pull request #314 from hupfis/patch-1

Missing initializer caused "TypeError: initf is undefined"