Bugfix: getText() method is called on undefined variable
Merge pull request #11 from kristian-ackar/master

Bugfix: getText() method is called on undefined variable