fix null pointer for situation when call registered function from console
Merge pull request #44 from 7-by/master

fix null pointer for situation when call registered function from console