fixed #3470
Merge pull request #4659 from chengstory/#3470

fixed empty node crashed.