fix handling of undefined hint
Merge pull request #11 from vasili-zolotov/hint

fix handling of undefined hint