Fixes missing method in case of old nodejs version.

Jira-issue: WP-1279
Fixes typo.

Jira-issue: WP-1279
Merge pull request #11 from mlasak/WP-1279

Fixes missing method in case of old nodejs version.