[FIX] check if reloadData is not undefined
Merge pull request #25 from venyii/thextor/undefinedfix

[FIX] check if reloadData is not undefined