fix(core): prevent convert when input is null

Linked with #18.